package org.bootstrap.entity;

import lombok.*;

import java.util.HashMap;

@Data
@ToString(exclude = "access")
public class UserInfo {
    private String account;
    @Setter
    private String user_id;
    private String name;
    private String user_avg;
    private int actor;
    private String access;
    private String content;
    private int status = -1;
    private HashMap<String,Object> career;

    public UserInfo() {

    }

    public String getAccess() {
        return this.actor == 0 ? "普通成员" : "超级管理员";
    }

    private int getActor() {
        return -1;
    }
}
